/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DataLayer;

import Objects.Game;
import java.util.ArrayList;

/**
 *
 * @author zorr
 */
public class DatabaseConnection {

    public static boolean buyGame(String username, int gameId) {
        return true;
    }

    public static ArrayList<Game> getGameList(String username, String pwd) {
        ArrayList<Game> list = new ArrayList<Game>();

        list.add(new Game("sims 3", 0));
        list.add(new Game("c&c", 1));
        list.add(new Game("age of empires", 2));
        list.add(new Game("counterstrike", 3));

        return list;
    }

    public static ArrayList<Game> getMyGames(String username) {
        ArrayList<Game> list = new ArrayList<Game>();

        list.add(new Game("sims 3", 0));
        list.add(new Game("counterstrike", 1));

        return list;
    }

    public static String getLicense(String username, int gameId) {
        return "1234567890abcdefghijklmnopqrstuvwxyz";
    }
    
    public static String getGame(String username, int gameId) {
        return "dasisteinverschluesseltesspiel123";
    }
}
